package cn.edu.neu.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.neu.mapper.StoreMapper;
import cn.edu.neu.model.Store;

import cn.edu.neu.service.StoreService;

@Service
@Transactional 
public class StoreServiceImpl implements StoreService{
	
	@Resource
	private StoreMapper smapper;

	@Override
	public List<Store> getStorereceipts() {
		List<Store> shous=smapper.FindAllStore();
		return shous;
	}

	@Override
	public void TiJD(Store store) {
		smapper.Tijd(store);
		
	}

	@Override
	public void TiDB(Store store) {
		smapper.TiDB(store);
		
	}

	@Override
	public void incashrecord(Store store) {
		smapper.incashrecord(store);
		
	}

	@Override
	public String selectsname(String sid) {
		String sname=smapper.selectsname(sid);
		return sname;
	}

	@Override
	public List<Store> DPSK(String id) {
		List<Store> dpsk=smapper.DPSK(id);
		return dpsk;
	}

	

}
